﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<MyMainSite.Models.Admin.NewProjectModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>New Project</h2>

	<% if(!String.IsNullOrWhiteSpace(this.Model.ErrorMessage))
	{ %>
	<div class="ui-widget">
		<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;"> 
			<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> 
			<strong>Alert:</strong> <%: this.Model.ErrorMessage %></p>
		</div>
	</div>
	<% } %>

	<form action="/admin/newproject" method="post" enctype="multipart/form-data">

		<p>
			Name *: <input id="textName" name="textName" />
		</p>

		<p>
			Friendly Url *: <input id="textFriendlyUrl" name="textFriendlyUrl" />
		</p>

		<p>
			Description *: <textarea id="textDescription" name="textDescription" rows="6">&lt;p&gt;&lt;/p&gt;</textarea>
		</p>

		<p>
			Image *: <input type="file" name="file" id="file" />
		</p>

		<p>
			Source Code Url: <input id="textSourceCodeUrl" name="textSourceCodeUrl" />
		</p>

		<p>
			BugzX Url: <input id="textBugzXUrl" name="textBugzXUrl" />
		</p>

		<p>
			Android Market Url: <input id="textAndroidMarketUrl" name="textAndroidMarketUrl" />
		</p>
 
		<input type="submit" name="submit" value="Submit" />
	</form>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="contentHeader" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="contentLeftMenu" runat="server">
</asp:Content>
